//
//  YSCommentMsgCell.m
//  Yueshi
//
//  Created by yueshi－mac1 on 15/12/7.
//  Copyright © 2015年 悦食中国. All rights reserved.
//

#import "YSCommentMsgCell.h"

@implementation YSCommentMsgCell


+ (instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *ID = @"YSCommentMsgCell";
    YSCommentMsgCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[YSCommentMsgCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ID];
    }
    return cell;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        YSCommentMsgView *commentMsgView = [[YSCommentMsgView alloc] init];
        self.commentMsgView = commentMsgView;
        [self addSubview:commentMsgView];
    }
    return  self;
}

- (void)setCommentMsgFrame:(YSCommentMsgFrame *)commentMsgFrame{
    _commentMsgFrame = commentMsgFrame;
    _commentMsgView.commentMsgFrame = commentMsgFrame;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
